<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      .box {
        width: 500px;
        height: 600px;
        border: 1px solid #ccc;
        margin: 100px auto;
        display: flex;
        flex-direction: column;
        justify-content: space-between;

        .top {
          flex: 3;
          border: 1px solid blue;
        }

        .bottom {
          flex: 1;
          border: 1px solid red;
        }

        .q {
          display: flex;
          justify-content: space-between;
          flex-direction: column;
        }
      }
    </style>
  </head>
  <body>
    <div class="box">
      <div class="top">top</div>
      <div class="bottom">
        <div class="q">
          <div class="a1">
            <ul>
              <li>1</li>
              <li>2</li>
              <li>3</li>
            </ul>
          </div>
          <div class="a2">aaaaaa</div>
        </div>
      </div>
    </div>
  </body>
</html>
